# -*- coding: utf-8 -*-
# @Time : 2024/3/15 17:25
# @Author : ZH
# @File : 2312.py
# @Software: PyCharm
class Solution(object):
    def sellingWood(self, m, n, prices):
        """
        :type m: int
        :type n: int
        :type prices: List[List[int]]
        :rtype: int
        """
        # 总的木头数量
        all_num = m * n
        # 算所有的木头价格
        prices_num = {i[2] / (i[0] * i[1]): i[0] * i[1] for i in prices}
        sorted(prices_num, key=lambda x: x)
        print(prices_num)


if __name__ == '__main__':
    so = Solution()
    so.sellingWood(m=3, n=5, prices=[[1, 4, 2], [2, 2, 7], [2, 1, 3]])
